<?php
/**
 * CommonCo
 *  
 * @author x
 * @version 
 */
class Model_CommonCo extends Zend_Db_Table_Abstract
{
    /**
     * The default table name
     */
    protected $_name = 'tcl_common_co';
    
    
    //注册时写入初始化
    public function setNewCo($data) {
    	 
    	try {
    		$id = $this->insert($data);
    	} catch(Exception $e) {
    		// when it fails to insert
    		// how can i run this echo
    		echo $e; //??
    		exit();
    	}
    	return $id;
    }
    
}
